package com.adnaan.backend.service;

import cn.hutool.json.JSONObject;
import com.adnaan.backend.entity.SysUser;
import com.adnaan.backend.entity.dto.OptionDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysUserService extends IService<SysUser> {
    List<OptionDto> getRoles(Long id);

    void insertRoles(Long id, List<String> roleIds);

    void deleteRoles(Long id);

    List<String> listRolesByUserId(String userId);

    List<String> listPermissionsByRoleCode(String roleCode);

    List<JSONObject> listMenuByUserId();

    void setLastLoginTime(Long id);
}
